<?php

/**
 *   数字货币记录
 * @author xiaojy xiaojy@wanthings.com
 * @copyright 
 */
class DigitalCashLog extends BaseActiveRecord
{

    /*
     * 获得数据表方法
     * 重写父类方法tableName()
     */

    function tableName() {
        return "{{digital_cash_log}}";
    }

    /*
     * 获得当前类对象的方法model
     * 重写父类方法model
     */

    public static function model($className = __CLASS__) {
        return parent::model($className);
    }


    public function behaviors()
    {
        return array(
            'DigitalCashLogBehavior' => array(
                'class' => 'application.behaviors.DigitalCashLogBehavior'
            ),
            'CTimestampBehavior' => array(
                'class' => 'zii.behaviors.CTimestampBehavior',
                'createAttribute' => 'ctime',
                'updateAttribute' => 'mtime',
                'setUpdateOnCreate'=> true,
            ),
  
        );
    }


}